package cn.net.ecode.elec.api.entity;

import cn.net.ecode.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @ClassName SubAdminForm
 * @Description 子管理员表单
 * @Author AlanShelby
 * @Date 2019/8/27 0027 15:28
 * @Version 1.0
 */
public class SubAdminForm extends DataEntity<SubAdminForm> {

    private static final long serialVersionUID = 1L;
    private String phoneNumber;        // 登录名（手机号）
    private String userName;        // 用户名
    private String btypeCode;        // 企业编码
    private String extendS5;        // 岗位

    @Length(min = 11, max = 11, message = "请输入合法的 11 位手机号")
    @NotNull
    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    @NotNull
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getBtypeCode() {
        return btypeCode;
    }

    public void setBtypeCode(String btypeCode) {
        this.btypeCode = btypeCode;
    }

    public String getExtendS5() {
        return extendS5;
    }

    public void setExtendS5(String extendS5) {
        this.extendS5 = extendS5;
    }
}